/**
 * 
 */
package org.rollinitiative.d20.entity.skills;

import org.rollinitiative.d20.entity.Ability;

/**
 * @author bebopjmm
 *
 */
public class Skill
{

    private String id;
    
    private String name;
    
    private Ability keyAbility;

    /**
     * @return the id of the skill
     */
    public String getId()
    {
        return id;
    }

    /**
     * @param id    new ID attribute for the skill
     */
    void setId(String id)
    {
        this.id = id;
    }

    /**
     * @return the descriptive name of the skill
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name  new name attribute for the skill
     */
    void setName(String name)
    {
        this.name = name;
    }

    /**
     * @return the keyAbility associated with this skill
     */
    public Ability getKeyAbility()
    {
        return keyAbility;
    }

    /**
     * @param keyAbility     new keyAbility for this skill
     */
     void setKeyAbility(Ability keyAbility)
    {
        this.keyAbility = keyAbility;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj)
    {
        if (!(obj instanceof Skill)) {
            return false;
        }
        Skill target = (Skill)obj;
        if (this.id.equals(target.id)) {
            return true;
        }
        else {
            return false;
        }
    }
    
     
     
    
}
